﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014DB RID: 5339
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpgradeAreaScRsp : IMessage<UpgradeAreaScRsp>, IMessage, IEquatable<UpgradeAreaScRsp>, IDeepCloneable<UpgradeAreaScRsp>, IBufferMessage
	{
		// Token: 0x17004333 RID: 17203
		// (get) Token: 0x0600EEC3 RID: 61123 RVA: 0x0027D94C File Offset: 0x0027BB4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpgradeAreaScRsp> Parser
		{
			get
			{
				return UpgradeAreaScRsp._parser;
			}
		}

		// Token: 0x17004334 RID: 17204
		// (get) Token: 0x0600EEC4 RID: 61124 RVA: 0x0027D953 File Offset: 0x0027BB53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpgradeAreaScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004335 RID: 17205
		// (get) Token: 0x0600EEC5 RID: 61125 RVA: 0x0027D965 File Offset: 0x0027BB65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpgradeAreaScRsp.Descriptor;
			}
		}

		// Token: 0x0600EEC6 RID: 61126 RVA: 0x0027D96C File Offset: 0x0027BB6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaScRsp()
		{
		}

		// Token: 0x0600EEC7 RID: 61127 RVA: 0x0027D974 File Offset: 0x0027BB74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaScRsp(UpgradeAreaScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.areaId_ = other.areaId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EEC8 RID: 61128 RVA: 0x0027D9B1 File Offset: 0x0027BBB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaScRsp Clone()
		{
			return new UpgradeAreaScRsp(this);
		}

		// Token: 0x17004336 RID: 17206
		// (get) Token: 0x0600EEC9 RID: 61129 RVA: 0x0027D9B9 File Offset: 0x0027BBB9
		// (set) Token: 0x0600EECA RID: 61130 RVA: 0x0027D9C1 File Offset: 0x0027BBC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17004337 RID: 17207
		// (get) Token: 0x0600EECB RID: 61131 RVA: 0x0027D9CA File Offset: 0x0027BBCA
		// (set) Token: 0x0600EECC RID: 61132 RVA: 0x0027D9D2 File Offset: 0x0027BBD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17004338 RID: 17208
		// (get) Token: 0x0600EECD RID: 61133 RVA: 0x0027D9DB File Offset: 0x0027BBDB
		// (set) Token: 0x0600EECE RID: 61134 RVA: 0x0027D9E3 File Offset: 0x0027BBE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600EECF RID: 61135 RVA: 0x0027D9EC File Offset: 0x0027BBEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpgradeAreaScRsp);
		}

		// Token: 0x0600EED0 RID: 61136 RVA: 0x0027D9FC File Offset: 0x0027BBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpgradeAreaScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.AreaId == other.AreaId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EED1 RID: 61137 RVA: 0x0027DA58 File Offset: 0x0027BC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EED2 RID: 61138 RVA: 0x0027DAC9 File Offset: 0x0027BCC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EED3 RID: 61139 RVA: 0x0027DAD1 File Offset: 0x0027BCD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EED4 RID: 61140 RVA: 0x0027DADC File Offset: 0x0027BCDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AreaId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EED5 RID: 61141 RVA: 0x0027DB50 File Offset: 0x0027BD50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EED6 RID: 61142 RVA: 0x0027DBC0 File Offset: 0x0027BDC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpgradeAreaScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EED7 RID: 61143 RVA: 0x0027DC24 File Offset: 0x0027BE24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EED8 RID: 61144 RVA: 0x0027DC30 File Offset: 0x0027BE30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 88U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Level = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E57 RID: 24151
		private static readonly MessageParser<UpgradeAreaScRsp> _parser = new MessageParser<UpgradeAreaScRsp>(() => new UpgradeAreaScRsp());

		// Token: 0x04005E58 RID: 24152
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E59 RID: 24153
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04005E5A RID: 24154
		private uint retcode_;

		// Token: 0x04005E5B RID: 24155
		public const int AreaIdFieldNumber = 1;

		// Token: 0x04005E5C RID: 24156
		private uint areaId_;

		// Token: 0x04005E5D RID: 24157
		public const int LevelFieldNumber = 15;

		// Token: 0x04005E5E RID: 24158
		private uint level_;
	}
}
